package com.bnz.tset;

import com.bnz.config.User;
import com.bnz.config.Users;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class TestConfig {
    @Autowired
    private User user;
    @Autowired
    private Users users;
    // 1. 测试单个对象
    @Test
    public void test01(){
        System.out.println("user = " + user);
    }
    // 2. 测试对象数组
    @Test
    public void test02(){
        System.out.println("users = " + users);
    }

}
